package com.xiaobaibai.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaobaibai.dao.CouponBelongDao;
import com.xiaobaibai.entity.Coupon;
import com.xiaobaibai.entity.CouponBelong;
import com.xiaobaibai.service.ICouponBelongService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-10-24
 */
@Service
public class CouponBelongServiceImpl extends ServiceImpl<CouponBelongDao, CouponBelong> implements ICouponBelongService {

    @Override
    public void deleteCouponBelong(Integer id) {
        QueryWrapper<CouponBelong> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("coupon_id",id);
        this.remove(queryWrapper);
    }

}
